<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="utf-8"/>
    <!--标识百度适应pc和mobile-->
    <meta name="applicable-device" content="pc,mobile">
    <!--禁止百度转码-->
    <meta http-equiv="Cache-Control" content="no-transform"/>
    <meta http-equiv="Cache-Control" content="no-siteapp"/>
    <!--启用360浏览器的极速模式-->
    <meta name="renderer" content="webkit"/>
    <!-- 强制Chromium内核，作用于其他双核浏览器 -->
    <meta name="force-rendering" content="webkit"/>
    <!--优先使用 IE 最新版本和 Chrome-->
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
    <!--避免IE使用兼容模式-->
    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
    <!--针对手持设备优化，主要是针对一些老的不识别viewport的浏览器，比如黑莓-->
    <meta name="HandheldFriendly" content="true"/>
    <!--搜索引擎蜘蛛-->
    <meta name="Baiduspider" content="index,follow,noarchive"/>
    <meta name="robots" content="index,follow"/>
    <!--作者及版权-->
    <meta name="author" content="Janecraft"/>
    <meta name="copyright" content="Janecraft"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    <link rel="shortcut icon" type="image/x-icon" href="/favicon.ico"/>
    <title>Title</title>
    <meta name="keywords" content="关键词"/>
    <meta name="description" content="描述"/>
    <link rel="shortcut icon" href="favicon.ico">
    <link href="/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="/css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
    <link href="/css/animate.css" rel="stylesheet">
    <link href="/css/style.css?v=4.1.0" rel="stylesheet">

    <link href="/bootstraptable/bootstrap-table.min.css" rel="stylesheet">
    <style>
        .text_bottom_border{
            border: none;
            border-bottom: 1px solid black;
        }

        .text_no_border{
            border: none;
        }
    </style>
</head>
<body>
<div class="container">
    <div style="width: 1200px;margin: 0 auto;">
        <h5 style="color: #3e79b6">您正在做的业务是：产品设计--产品档案管理--产品档案登记详情信息</h5>
    </div>

    <div class="panel panel-default">
        <form class="form-horizontal" id="design_file_form">
            <div class="panel-heading" style="text-align: right">
                <button type="button" id="return_btn" class="btn btn-info">返回</button>
            </div>
            <div class="panel-body">

                <div class="form-group">
                    <div class="col-sm-6">
                        <label class="col-sm-4 control-label" for="id">序号：</label>
                        <div class="col-sm-8">
                            <input type="text" name="id" id="id"
                                   class="form-control text_no_border"
                                   value="">
                        </div>
                    </div>
                </div>

                <div class="form-group">
                    <div class="col-sm-6">
                        <label class="col-sm-4 control-label" for="productName">产品名称：</label>
                        <div class="col-sm-8">
                            <input type="text" name="productName" id="productName"
                                   class="form-control text_no_border"
                                   value="">
                        </div>
                    </div>

                    <div class="col-sm-6">
                        <label class="col-sm-4 control-label" for="productId">产品编号：</label>
                        <div class="col-sm-8">
                            <input type="text" name="productId" id="productId"
                                   class="form-control text_no_border"
                                   value="">
                        </div>
                    </div>
                </div>

                <div class="form-group">
                    <div class="col-sm-6">
                        <label class="col-sm-4 control-label" for="firstKindId">产品I级分类编号：</label>
                        <div class="col-sm-8">
                            <input type="text" name="firstKindId" id="firstKindId"
                                   class="form-control text_no_border"
                                   value="">
                        </div>
                    </div>

                    <div class="col-sm-6">
                        <label class="col-sm-4 control-label" for="firstKindName">产品I级分类名称：</label>
                        <div class="col-sm-8">
                            <input type="text" name="firstKindName" id="firstKindName"
                                   class="form-control text_no_border"
                                   value="">
                        </div>
                    </div>
                </div>

                <div class="form-group">
                    <div class="col-sm-6">
                        <label class="col-sm-4 control-label" for="secondKindId">产品II级分类编号：</label>
                        <div class="col-sm-8">
                            <input type="text" name="secondKindId" id="secondKindId"
                                   class="form-control text_no_border"
                                   value="">
                        </div>
                    </div>

                    <div class="col-sm-6">
                        <label class="col-sm-4 control-label" for="secondKindName">产品II级分类名称：</label>
                        <div class="col-sm-8">
                            <input type="text" name="secondKindName" id="secondKindName"
                                   class="form-control text_no_border"
                                   value="">
                        </div>
                    </div>
                </div>

                <div class="form-group">
                    <div class="col-sm-6">
                        <label class="col-sm-4 control-label" for="thirdKindId">产品III级分类编号：</label>
                        <div class="col-sm-8">
                            <input type="text" name="thirdKindId" id="thirdKindId"
                                   class="form-control text_no_border"
                                   value="">
                        </div>
                    </div>

                    <div class="col-sm-6">
                        <label class="col-sm-4 control-label" for="thirdKindName">产品III级分类名称：</label>
                        <div class="col-sm-8">
                            <input type="text" name="thirdKindName" id="thirdKindName"
                                   class="form-control text_no_border"
                                   value="">
                        </div>
                    </div>
                </div>

                <div class="form-group">
                    <div class="col-sm-6">
                        <label class="col-sm-4 control-label" for="productNick">产品简称：</label>
                        <div class="col-sm-8">
                            <input class="form-control text_no_border"
                                   type="text" name="productNick" id="productNick"
                            />
                        </div>
                    </div>
                </div>

                <div class="form-group">
                    <div class="col-sm-6">
                        <label class="col-sm-4 control-label" for="type">用途类型：</label>
                        <div class="col-sm-8">
                            <select class="form-control" name="type" id="type">
                                <option value="">请选择用途类型</option>

                                <option value="Y001-1">商品</option>

                                <option value="Y001-2">物料</option>
                            </select>
                        </div>
                    </div>

                    <div class="col-sm-6">
                        <label class="col-sm-4 control-label" for="productClass">档次级别：</label>
                        <div class="col-sm-8">
                            <select class="form-control" name="productClass" id="productClass">
                                <option value="">请选择档次级别</option>

                                <option value="D001-1">高档</option>

                                <option value="D001-2">中档</option>

                                <option value="D001-3">低档</option>
                            </select>
                        </div>
                    </div>
                </div>

                <div class="form-group">
                    <div class="col-sm-6">
                        <label class="col-sm-4 control-label" for="listPrice">市场单价(元)：</label>
                        <div class="col-sm-8">
                            <input class="form-control text_no_border"
                                   type="text" name="listPrice" id="listPrice"
                            />
                        </div>
                    </div>

                    <div class="col-sm-6">
                        <label class="col-sm-4 control-label" for="costPrice">计划成本单价：</label>
                        <div class="col-sm-8">
                            <input class="form-control text_no_border"
                                   type="text" name="costPrice" id="costPrice"
                            />
                        </div>
                    </div>
                </div>

                <div class="form-group">
                    <div class="col-sm-6">
                        <label class="col-sm-4 control-label" for="personalUnit">计量单位：</label>
                        <div class="col-sm-8">
                            <input class="form-control text_no_border"
                                   type="text" name="personalUnit" id="personalUnit"
                            />
                        </div>
                    </div>

                    <div class="col-sm-6">
                        <label class="col-sm-4 control-label" for="personalValue">计量值：</label>
                        <div class="col-sm-8">
                            <input class="form-control text_no_border"
                                   type="text" name="personalValue" id="personalValue"
                            />
                        </div>
                    </div>
                </div>

                <div class="form-group">
                    <div class="col-sm-6">
                        <label class="col-sm-4 control-label" for="warranty">保修期：</label>
                        <div class="col-sm-8">
                            <input class="form-control text_no_border" type="text" name="warranty" id="warranty"
                            />
                        </div>
                    </div>

                    <div class="col-sm-6">
                        <label class="col-sm-4 control-label" for="twinName">替代品名称：</label>
                        <div class="col-sm-8">
                            <input class="form-control text_no_border"
                                   type="text" name="twinName" id="twinName"
                            />
                        </div>
                    </div>
                </div>

                <div class="form-group">
                    <div class="col-sm-6">
                        <label class="col-sm-4 control-label" for="twinId">替代品编号：</label>
                        <div class="col-sm-8">
                            <input class="form-control text_no_border"
                                   type="text" name="twinId" id="twinId"
                            />
                        </div>
                    </div>

                    <div class="col-sm-6">
                        <label class="col-sm-4 control-label" for="lifecycle">生命周期(年)：</label>
                        <div class="col-sm-8">
                            <input class="form-control text_no_border"
                                   type="text" name="lifecycle" id="lifecycle"
                            />
                        </div>
                    </div>
                </div>

                <div class="form-group">
                    <div class="col-sm-6">
                        <label class="col-sm-4 control-label" for="amountUnit">单位：</label>
                        <div class="col-sm-8">
                            <input class="form-control text_no_border"
                                   type="text" name="amountUnit" id="amountUnit"
                            />
                        </div>
                    </div>

                    <div class="col-sm-6">
                        <label class="col-sm-4 control-label" for="responsiblePerson">产品经理：</label>
                        <div class="col-sm-8">
                            <input class="form-control text_no_border"
                                   type="text" name="responsiblePerson" id="responsiblePerson"
                            />
                        </div>
                    </div>
                </div>

                <div class="form-group">
                    <div class="col-sm-6">
                        <label class="col-sm-4 control-label" for="providerGroup">供应商集合：</label>
                        <div class="col-sm-8">
                            <input class="form-control text_no_border"
                                   type="text" name="providerGroup" id="providerGroup"
                            />
                        </div>
                    </div>

                    <div class="col-sm-6">
                        <label class="col-sm-4 control-label" for="productDescribe"> 产品描述：</label>
                        <div class="col-sm-8">
                            <input class="form-control text_no_border"
                                   type="text" name="productDescribe" id="productDescribe"
                            />
                        </div>
                    </div>
                </div>

                <div class="form-group">
                    <div class="col-sm-6">
                        <label class="col-sm-4 control-label" for="register">登记人：</label>
                        <div class="col-sm-8">
                            <input class="form-control text_no_border"
                                   type="text" name="register" id="register"
                            />
                        </div>
                    </div>

                    <div class="col-sm-6">
                        <label class="col-sm-4 control-label"for="registerTime">建档时间：</label>
                        <div class="col-sm-8">
                            <input type="text" class="form-control text_no_border"
                                   id="registerTime" name="registerTime"
                            >
                        </div>
                    </div>
                </div>
            </div>
        </form>
    </div>
</div>

<!-- 全局js -->
<script src="/js/jquery.min.js?v=2.1.4"></script>
<script src="/js/bootstrap.min.js?v=3.3.6"></script>
<script src="/js/plugins/metisMenu/jquery.metisMenu.js"></script>
<script src="/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
<script src="/js/plugins/layer/layer.min.js"></script>

<!-- 自定义js -->
<script src="/js/hAdmin.js?v=4.1.0"></script>
<!--<script type="text/javascript" src="/js/index.js"></script>-->

<!-- 第三方插件 -->
<script src="/js/plugins/pace/pace.min.js"></script>

<!--BootstrapTable-->
<script src="/bootstraptable/bootstrap-table.min.js"></script>
<script src="/bootstraptable/locale/bootstrap-table-zh-CN.min.js"></script>
<script>
    $(function () {
        // 从页面作用域取出id
        let id = localStorage.getItem("id")

        // 根据id查询对应的产品档案
        $.get("/design/file/designFileGetId", {"id": id}, function (data) {
            // 设置产品名称和产品编号的回显
            $("#design_file_form #id").val(data.id)

            $("#design_file_form #productId").val(data.productId)
            $("#design_file_form #productName").val(data.productName)

            $("#design_file_form #firstKindId").val(data.firstKindId)
            $("#design_file_form #firstKindName").val(data.firstKindName)

            $("#design_file_form #secondKindId").val(data.secondKindId)
            $("#design_file_form #secondKindName").val(data.secondKindName)

            $("#design_file_form #thirdKindId").val(data.thirdKindId)
            $("#design_file_form #thirdKindName").val(data.thirdKindName)

            $("#design_file_form #productNick").val(data.productNick)
            $("#design_file_form #type").val(data.type)

            $("#design_file_form #productClass").val(data.productClass)
            $("#design_file_form #listPrice").val(data.listPrice)

            $("#design_file_form #costPrice").val(data.costPrice)
            $("#design_file_form #personalUnit").val(data.personalUnit)

            $("#design_file_form #personalValue").val(data.personalValue)
            $("#design_file_form #warranty").val(data.warranty)

            $("#design_file_form #twinName").val(data.twinName)
            $("#design_file_form #twinId").val(data.twinId)

            $("#design_file_form #lifecycle").val(data.lifecycle)
            $("#design_file_form #amountUnit").val(data.amountUnit)

            $("#design_file_form #responsiblePerson").val(data.responsiblePerson)
            $("#design_file_form #providerGroup").val(data.providerGroup)

            $("#design_file_form #productDescribe").val(data.productDescribe)
            $("#design_file_form #register").val(data.register)
            $("#design_file_form #registerTime").val(data.registerTime)
        }, "json")

        //点击返回按钮
        $("#return_btn").click(function () {
            window.location="/design/design_file_listUI"
        })
    })
</script>
</body>
</html>